<!DOCTYPE html>
<html>
<#include "../head.html">
    <body>
    <table class="mc">
        <tr>
            <td class="mc-l">
                <!--左侧导航---{-->
                <div id="navPanelContainer">
                    <div class="system-logo cd"></div>
                    <!--管理员信息---{-->
                    <#include "../adminInfo.html">
                        <!--管理员信息---}-->
                        <div class="nav-wrap">
                            <#include "left.html">
                        </div>
                </div>
                <!--左侧导航---}-->
            </td>
            <td class="mc-m">
                <div class="navToggle"></div>
            </td>
            <td class="mc-r">
                <!--顶部导航---{-->
                <#include "../topNav.html">
                    <!--顶部导航---}-->

                    <!--面包屑导航---{-->
                    <#assign moduleName="还款管理">
                        <#include "banner.html">
                            <!--面包屑导航---}-->

                            <!--工具栏--{-->
                            <div id="toolbar" class="clearfix">
                                <#if param?exists>
                                    <#if param.get("username")?exists><#assign username=param.get("username")></#if>
                                    <#if param.get("keywords")?exists><#assign keywords=param.get("keywords")></#if>
                                </#if>
                                <div class="toolbor-module search">
                                    <input type="button" value="搜索"  class="input-button" onclick="sousuo1();">
                                </div>
                                <div class="toolbor-module search">
                                    <input type="text" name="username" id="username" value="请输入用户名" data-value="请输入用户名" class="search-value">
                                </div>    
                                <div class="toolbor-module search">
                                    <input type="text" name="keywords" id="keywords" value="请输入关键字" data-value="请输入关键字" class="search-value">
								</div>
                            </div>
                            <!--工具栏--}-->
							
							
                            <div id="main" class="clearfix">
                                <form action="" method="post">
                                    <table class="data-list">
                                        <tr class="header">
                                            <td>ID</td>
                                            <td>借款人</td>
                                            <td>借款标题</td>
                                            <td>期数</td>
                                            <td>到期时间</td>
                                            <td>还款金额</td>
                                            <td>还款时间</td>
                                            <td>状态</td>
                                        </tr>
                                        <#import "../../common/function.html" as func>
                                            <#list list as item>
                                                <tr>
                                                    <td>${item.id?c}</td>
                                                    <td><a onclick='alertPop("用户详细信息查看","url:post?${request.getContextPath()}/admin/attestation/viewUserInfo.html?username=${item.username!}",500,230,"true","","true","text");'
                                                                                        href="javascript:void(0)">${item.username!}</a></td>
                                                    <td title="${item.borrow_name!}" class="tal">
                                                        <a href="${webroot}/invest/detail.html?borrowid=${(item.borrow_id!0)?c}" target="_blank">${item.borrow_name!}</a></td>
                                                    <td>${item.order+1}/${item.time_limit}</td>
                                                    <td>${dateformat(item.repayment_time)}</td>
                                                    <td>${((item.repayment_account)?number)?string("##.##")}元</td>
                                                    <td><#if item.repayment_yestime??>${dateformat(item.repayment_yestime)}<#else>-</#if></td>
                                                    <td><font color="#006600"><#if item.repayment_yestime??>已还<#else>还款中</#if></font></td>
                                                </tr>
                                            </#list>
                                    </table>
                                </form>
								
                                <!--底部工具栏--{-->
                                <div id="bottomToolbar" class="clearfix">
                                    <div class="other-tool">
                                        <dl class="refresh-data">
                                            <dt class="refresh-data-icon"></dt>
                                            <dd><a href="javascript:void(0);" class="refresh-page">刷新数据</a></dd>
                                        </dl>
                                    </div>

                                    <!--翻页系统--{-->
                                    <div class="container">
                                        <#import "../../common/page.html" as pager>
                                            <@pager.pagination page=page url="/admin/borrow/repaying.html" map=param style="style1" />
                                    </div>
                                    <!--翻页系统--}-->
                                </div>
                                <!--底部工具栏--}-->

                                <script>
                                    var urls = 'repaying.html?search=true';
                                    function sousuo1(){
                                        var sou = "";
                                        var username = $("#username").val();
                                        if (username!=""&&username!="请输入用户名"){
                                            sou += "&username="+username;
                                        }
                                        var keywords = $("#keywords").val();
                                        if (keywords!=""&&keywords!="请输入关键字"){
                                            sou += "&keywords="+keywords;
                                        }
                                        location.href=urls+sou;
                                    }
                                </script>
                            </div>

            </td>
        </tr>
        <tr>
            <!--尾部--{-->
            <td colspan="3" class="mc-b"><#include "../foot.html"></td>
            <!--尾部--}-->
        </tr>
    </table>

    </body>
</html>
<#include "../jsPage.html">
